{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'refresh_token': '25.fdee6632db85879f0c3bad10a87b0c61.315360000.1918200224.282335-22829599', 'expires_in': 2592000, 'session_key': '9mzdDcP3VRmNKtvKYvckmqzebtearXvIxE7iPScfNOTyD2wCz84ms0tbBi1kJu60m/N8WIpSIFYJV6YYQDxvpy5UsQ5BvA==', 'access_token': '24.658c797c73303c7b89add9de23c44349.2592000.1605432224.282335-22829599', 'scope': 'public brain_all_scope vis-faceverify_faceverify_h5-face-liveness vis-faceverify_FACE_V3 vis-faceverify_idl_face_merge vis-faceverify_FACE_EFFECT wise_adapt lebo_resource_base lightservice_public hetu_basic lightcms_map_poi kaidian_kaidian ApsMisTest_Test权限 vis-classify_flower lpq_开放 cop_helloScope ApsMis_fangdi_permission smartapp_snsapi_base smartapp_mapp_dev_manage iop_autocar oauth_tp_app smartapp_smart_game_openapi oauth_sessionkey smartapp_swanid_verify smartapp_opensource_openapi smartapp_opensource_recapi fake_face_detect_开放Scope vis-ocr_虚拟人物助理 idl-video_虚拟人物助理 smartapp_component', 'session_secret': '5af8f650b590a7170cf6731f32e7a787'}\n"
     ]
    }
   ],
   "source": [
    "# encoding:utf-8\n",
    "import requests \n",
    "import json\n",
    "# client_id 为官网获取的AK， client_secret 为官网获取的SK\n",
    "host = 'https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=Z6Rrww77f6pbWVHGreoOENUq&client_secret=ejOcq0HaHqFEfLZ6MVeSkFnwQFoycHNe'\n",
    "response = requests.get(host)\n",
    "if response:\n",
    "    print(response.json())"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'refresh_token': '25.fdee6632db85879f0c3bad10a87b0c61.315360000.1918200224.282335-22829599',\n",
       " 'expires_in': 2592000,\n",
       " 'session_key': '9mzdDcP3VRmNKtvKYvckmqzebtearXvIxE7iPScfNOTyD2wCz84ms0tbBi1kJu60m/N8WIpSIFYJV6YYQDxvpy5UsQ5BvA==',\n",
       " 'access_token': '24.658c797c73303c7b89add9de23c44349.2592000.1605432224.282335-22829599',\n",
       " 'scope': 'public brain_all_scope vis-faceverify_faceverify_h5-face-liveness vis-faceverify_FACE_V3 vis-faceverify_idl_face_merge vis-faceverify_FACE_EFFECT wise_adapt lebo_resource_base lightservice_public hetu_basic lightcms_map_poi kaidian_kaidian ApsMisTest_Test权限 vis-classify_flower lpq_开放 cop_helloScope ApsMis_fangdi_permission smartapp_snsapi_base smartapp_mapp_dev_manage iop_autocar oauth_tp_app smartapp_smart_game_openapi oauth_sessionkey smartapp_swanid_verify smartapp_opensource_openapi smartapp_opensource_recapi fake_face_detect_开放Scope vis-ocr_虚拟人物助理 idl-video_虚拟人物助理 smartapp_component',\n",
       " 'session_secret': '5af8f650b590a7170cf6731f32e7a787'}"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "response.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'error_code': 0, 'error_msg': 'SUCCESS', 'log_id': 4545558489991, 'timestamp': 1602865856, 'cached': 0, 'result': {'face_num': 1, 'face_list': [{'face_token': '82ed43da199f744f6d757603f9bd999e', 'location': {'left': 275.15, 'top': 226.04, 'width': 294, 'height': 294, 'rotation': -1}, 'face_probability': 1, 'angle': {'yaw': -1.02, 'pitch': 14.68, 'roll': -4.08}, 'age': 21, 'beauty': 55.28, 'expression': {'type': 'none', 'probability': 0.92}, 'face_shape': {'type': 'oval', 'probability': 0.61}, 'gender': {'type': 'female', 'probability': 0.91}, 'glasses': {'type': 'common', 'probability': 1}, 'landmark': [{'x': 354.95, 'y': 275.97}, {'x': 486.24, 'y': 271.87}, {'x': 423, 'y': 356.75}, {'x': 426.47, 'y': 425.44}], 'landmark72': [{'x': 276.45, 'y': 273.77}, {'x': 282.35, 'y': 320.74}, {'x': 291.55, 'y': 368.26}, {'x': 304.07, 'y': 415.25}, {'x': 333.31, 'y': 463.12}, {'x': 379.97, 'y': 502.7}, {'x': 428.25, 'y': 515.26}, {'x': 476.31, 'y': 500.55}, {'x': 522.19, 'y': 458.62}, {'x': 550.43, 'y': 408.78}, {'x': 561.16, 'y': 359.45}, {'x': 567.84, 'y': 310.52}, {'x': 570.75, 'y': 261.97}, {'x': 324.24, 'y': 280.29}, {'x': 337.84, 'y': 268.99}, {'x': 353.83, 'y': 265.86}, {'x': 369.46, 'y': 270.16}, {'x': 382.85, 'y': 284.43}, {'x': 368.69, 'y': 287.39}, {'x': 352.44, 'y': 288.91}, {'x': 336.35, 'y': 286.16}, {'x': 354.95, 'y': 275.97}, {'x': 299.26, 'y': 249.65}, {'x': 317.62, 'y': 227.4}, {'x': 342.01, 'y': 223.77}, {'x': 365.49, 'y': 226.47}, {'x': 387.5, 'y': 242.21}, {'x': 364.36, 'y': 242.18}, {'x': 341.89, 'y': 241.2}, {'x': 319.71, 'y': 243.36}, {'x': 458.87, 'y': 282.29}, {'x': 471.12, 'y': 267.12}, {'x': 486.27, 'y': 261.88}, {'x': 502.73, 'y': 264.02}, {'x': 517.01, 'y': 273.98}, {'x': 505.19, 'y': 281.01}, {'x': 489.12, 'y': 284.44}, {'x': 473.07, 'y': 284.21}, {'x': 486.24, 'y': 271.87}, {'x': 451.15, 'y': 240.49}, {'x': 472.55, 'y': 223.47}, {'x': 495.78, 'y': 219}, {'x': 520.72, 'y': 221.05}, {'x': 541.07, 'y': 241.33}, {'x': 519.66, 'y': 236.66}, {'x': 497.07, 'y': 236.36}, {'x': 474.6, 'y': 238.8}, {'x': 401.01, 'y': 285.62}, {'x': 396.5, 'y': 313.62}, {'x': 391.5, 'y': 342.45}, {'x': 382.99, 'y': 372.29}, {'x': 403.01, 'y': 373.64}, {'x': 445.47, 'y': 371.55}, {'x': 464.79, 'y': 368.3}, {'x': 453.33, 'y': 339.35}, {'x': 446.35, 'y': 311.81}, {'x': 439.45, 'y': 284.1}, {'x': 423, 'y': 356.75}, {'x': 371.64, 'y': 421.4}, {'x': 397.83, 'y': 412.52}, {'x': 425.98, 'y': 412.96}, {'x': 454.46, 'y': 410.96}, {'x': 482.02, 'y': 417.58}, {'x': 458.55, 'y': 439.23}, {'x': 426.77, 'y': 448.42}, {'x': 394.74, 'y': 441.26}, {'x': 398.84, 'y': 422.78}, {'x': 426.59, 'y': 424.53}, {'x': 453.98, 'y': 421.24}, {'x': 454.23, 'y': 425.94}, {'x': 426.15, 'y': 429.43}, {'x': 398.78, 'y': 427.96}], 'landmark150': {'cheek_right_1': {'x': 280.23, 'y': 268.73}, 'cheek_right_3': {'x': 283.68, 'y': 316.54}, 'cheek_right_5': {'x': 290.95, 'y': 364.34}, 'cheek_right_7': {'x': 302.22, 'y': 411.86}, 'cheek_right_9': {'x': 331.99, 'y': 459.22}, 'cheek_right_11': {'x': 379.41, 'y': 501.94}, 'chin_2': {'x': 428.11, 'y': 515.42}, 'cheek_left_11': {'x': 476.52, 'y': 500.25}, 'cheek_left_9': {'x': 523.07, 'y': 457.37}, 'cheek_left_7': {'x': 553.06, 'y': 408.4}, 'cheek_left_5': {'x': 562.88, 'y': 359.27}, 'cheek_left_3': {'x': 568.4, 'y': 310.5}, 'cheek_left_1': {'x': 571.26, 'y': 262.13}, 'eye_right_corner_right': {'x': 324.38, 'y': 278.31}, 'eye_right_eyelid_upper_2': {'x': 337.05, 'y': 268.25}, 'eye_right_eyelid_upper_4': {'x': 352.16, 'y': 265.76}, 'eye_right_eyelid_upper_6': {'x': 367.23, 'y': 269.78}, 'eye_right_corner_left': {'x': 379.91, 'y': 282.51}, 'eye_right_eyelid_lower_6': {'x': 366.1, 'y': 283.96}, 'eye_right_eyelid_lower_4': {'x': 351.32, 'y': 284.87}, 'eye_right_eyelid_lower_2': {'x': 336.41, 'y': 282.81}, 'eye_right_eyeball_center': {'x': 353.33, 'y': 274.06}, 'eyebrow_right_corner_right': {'x': 299.44, 'y': 248.62}, 'eyebrow_right_upper_2': {'x': 316.93, 'y': 225.85}, 'eyebrow_right_upper_3': {'x': 342.08, 'y': 221.61}, 'eyebrow_right_upper_4': {'x': 366.11, 'y': 225.69}, 'eyebrow_right_corner_left': {'x': 388.17, 'y': 242.18}, 'eyebrow_right_lower_3': {'x': 364.67, 'y': 241.4}, 'eyebrow_right_lower_2': {'x': 341.79, 'y': 239.93}, 'eyebrow_right_lower_1': {'x': 319.23, 'y': 242.52}, 'eye_left_corner_right': {'x': 460.54, 'y': 281.18}, 'eye_left_eyelid_upper_2': {'x': 472.37, 'y': 267.51}, 'eye_left_eyelid_upper_4': {'x': 487.32, 'y': 262.5}, 'eye_left_eyelid_upper_6': {'x': 503.27, 'y': 264.73}, 'eye_left_corner_left': {'x': 517.74, 'y': 274.4}, 'eye_left_eyelid_lower_6': {'x': 505, 'y': 279.37}, 'eye_left_eyelid_lower_4': {'x': 489.55, 'y': 282.38}, 'eye_left_eyelid_lower_2': {'x': 474.19, 'y': 282.26}, 'eye_left_eyeball_center': {'x': 486.93, 'y': 271.58}, 'eyebrow_left_corner_right': {'x': 450.06, 'y': 240.22}, 'eyebrow_left_upper_2': {'x': 472.07, 'y': 222.41}, 'eyebrow_left_upper_3': {'x': 496.42, 'y': 216.86}, 'eyebrow_left_upper_4': {'x': 522.78, 'y': 219.5}, 'eyebrow_left_corner_left': {'x': 543.17, 'y': 241.95}, 'eyebrow_left_lower_3': {'x': 521.36, 'y': 236.56}, 'eyebrow_left_lower_2': {'x': 497.68, 'y': 235.35}, 'eyebrow_left_lower_1': {'x': 474.14, 'y': 238.22}, 'nose_right_contour_1': {'x': 401.43, 'y': 283.45}, 'nose_right_contour_2': {'x': 395.57, 'y': 312.44}, 'nose_right_contour_3': {'x': 389.79, 'y': 341.44}, 'nose_right_contour_4': {'x': 380.03, 'y': 370.68}, 'nose_right_contour_6': {'x': 399.66, 'y': 373.77}, 'nose_left_contour_6': {'x': 443.29, 'y': 372.64}, 'nose_left_contour_4': {'x': 464.24, 'y': 368.98}, 'nose_left_contour_3': {'x': 452.23, 'y': 340.21}, 'nose_left_contour_2': {'x': 445.18, 'y': 311.44}, 'nose_left_contour_1': {'x': 438.42, 'y': 282.92}, 'nose_tip': {'x': 419.96, 'y': 357.91}, 'mouth_corner_right_outer': {'x': 369.64, 'y': 421.23}, 'mouth_lip_upper_outer_3': {'x': 394.83, 'y': 413.06}, 'mouth_lip_upper_outer_6': {'x': 423.48, 'y': 412.99}, 'mouth_lip_upper_outer_9': {'x': 453.57, 'y': 411.88}, 'mouth_corner_left_outer': {'x': 483.18, 'y': 416.67}, 'mouth_lip_lower_outer_9': {'x': 458.93, 'y': 440.97}, 'mouth_lip_lower_outer_6': {'x': 425.4, 'y': 451.36}, 'mouth_lip_lower_outer_3': {'x': 392.57, 'y': 443.25}, 'mouth_lip_upper_inner_3': {'x': 395.74, 'y': 423.95}, 'mouth_lip_upper_inner_6': {'x': 424.1, 'y': 425.68}, 'mouth_lip_upper_inner_9': {'x': 453.55, 'y': 422.36}, 'mouth_lip_lower_inner_9': {'x': 453.5, 'y': 425.82}, 'mouth_lip_lower_inner_6': {'x': 424.63, 'y': 429.85}, 'mouth_lip_lower_inner_3': {'x': 396.74, 'y': 427.98}, 'cheek_right_2': {'x': 281.59, 'y': 292.66}, 'cheek_right_4': {'x': 286.65, 'y': 340.52}, 'cheek_right_6': {'x': 295.25, 'y': 388.77}, 'cheek_right_8': {'x': 314.97, 'y': 437.01}, 'cheek_right_10': {'x': 354.57, 'y': 481.91}, 'chin_1': {'x': 402.18, 'y': 512.67}, 'chin_3': {'x': 453.81, 'y': 511.44}, 'cheek_left_10': {'x': 500.71, 'y': 480.11}, 'cheek_left_8': {'x': 540, 'y': 434.4}, 'cheek_left_6': {'x': 559.23, 'y': 384.46}, 'cheek_left_4': {'x': 565.69, 'y': 335.12}, 'cheek_left_2': {'x': 569.84, 'y': 286.54}, 'eyebrow_right_upper_1': {'x': 299.29, 'y': 242.62}, 'eyebrow_right_upper_5': {'x': 388.26, 'y': 233.15}, 'eyebrow_left_upper_1': {'x': 449.63, 'y': 231.52}, 'eyebrow_left_upper_5': {'x': 543.01, 'y': 235.87}, 'eye_right_eyelid_upper_1': {'x': 329.68, 'y': 272.1}, 'eye_right_eyelid_upper_3': {'x': 344.22, 'y': 265.71}, 'eye_right_eyelid_upper_5': {'x': 360.35, 'y': 266.32}, 'eye_right_eyelid_upper_7': {'x': 374.74, 'y': 274.98}, 'eye_right_eyelid_lower_7': {'x': 373.11, 'y': 283.4}, 'eye_right_eyelid_lower_5': {'x': 358.94, 'y': 285.54}, 'eye_right_eyelid_lower_3': {'x': 343.64, 'y': 285.22}, 'eye_right_eyelid_lower_1': {'x': 330.27, 'y': 281.1}, 'eye_right_eyeball_right': {'x': 340.94, 'y': 275.26}, 'eye_right_eyeball_left': {'x': 365.17, 'y': 275.15}, 'eye_left_eyelid_upper_1': {'x': 465.21, 'y': 273.24}, 'eye_left_eyelid_upper_3': {'x': 479.16, 'y': 263.63}, 'eye_left_eyelid_upper_5': {'x': 495.69, 'y': 262.32}, 'eye_left_eyelid_upper_7': {'x': 511.53, 'y': 268.48}, 'eye_left_eyelid_lower_7': {'x': 511.6, 'y': 277.33}, 'eye_left_eyelid_lower_5': {'x': 497.73, 'y': 282.27}, 'eye_left_eyelid_lower_3': {'x': 481.9, 'y': 283.54}, 'eye_left_eyelid_lower_1': {'x': 467.42, 'y': 281.95}, 'eye_left_eyeball_right': {'x': 475.07, 'y': 273.34}, 'eye_left_eyeball_left': {'x': 499.53, 'y': 272.18}, 'nose_bridge_1': {'x': 419.43, 'y': 283.47}, 'nose_bridge_2': {'x': 419.59, 'y': 311.89}, 'nose_bridge_3': {'x': 419.8, 'y': 340.86}, 'nose_right_contour_5': {'x': 391.62, 'y': 381.26}, 'nose_right_contour_7': {'x': 397.79, 'y': 366.03}, 'nose_left_contour_7': {'x': 444.46, 'y': 364.83}, 'nose_left_contour_5': {'x': 452.51, 'y': 380.17}, 'nose_middle_contour': {'x': 421.66, 'y': 384.61}, 'mouth_corner_right_inner': {'x': 373.87, 'y': 421.9}, 'mouth_corner_left_inner': {'x': 478.85, 'y': 417.73}, 'mouth_lip_upper_outer_1': {'x': 377.48, 'y': 417.49}, 'mouth_lip_upper_outer_2': {'x': 385.63, 'y': 414.65}, 'mouth_lip_upper_outer_4': {'x': 404.39, 'y': 410.51}, 'mouth_lip_upper_outer_5': {'x': 413.74, 'y': 410.89}, 'mouth_lip_upper_outer_7': {'x': 433.93, 'y': 410.56}, 'mouth_lip_upper_outer_8': {'x': 443.6, 'y': 409.79}, 'mouth_lip_upper_outer_10': {'x': 463.99, 'y': 412.53}, 'mouth_lip_upper_outer_11': {'x': 473.56, 'y': 414.3}, 'mouth_lip_lower_outer_11': {'x': 476.04, 'y': 425.81}, 'mouth_lip_lower_outer_10': {'x': 468.57, 'y': 434.45}, 'mouth_lip_lower_outer_8': {'x': 449.4, 'y': 447.85}, 'mouth_lip_lower_outer_7': {'x': 438, 'y': 451.39}, 'mouth_lip_lower_outer_5': {'x': 413.56, 'y': 452.36}, 'mouth_lip_lower_outer_4': {'x': 402.3, 'y': 449.47}, 'mouth_lip_lower_outer_2': {'x': 383.73, 'y': 437.4}, 'mouth_lip_lower_outer_1': {'x': 376.67, 'y': 429.58}, 'mouth_lip_upper_inner_1': {'x': 378.74, 'y': 421.72}, 'mouth_lip_upper_inner_2': {'x': 386.86, 'y': 422.5}, 'mouth_lip_upper_inner_4': {'x': 405.49, 'y': 423.66}, 'mouth_lip_upper_inner_5': {'x': 414.43, 'y': 424.14}, 'mouth_lip_upper_inner_7': {'x': 434.17, 'y': 423.78}, 'mouth_lip_upper_inner_8': {'x': 443.51, 'y': 422.67}, 'mouth_lip_upper_inner_10': {'x': 463.61, 'y': 419.99}, 'mouth_lip_upper_inner_11': {'x': 472.87, 'y': 418.17}, 'mouth_lip_lower_inner_11': {'x': 473.35, 'y': 420.88}, 'mouth_lip_lower_inner_10': {'x': 464, 'y': 423.31}, 'mouth_lip_lower_inner_8': {'x': 443.95, 'y': 427.45}, 'mouth_lip_lower_inner_7': {'x': 434.74, 'y': 428.73}, 'mouth_lip_lower_inner_5': {'x': 415.26, 'y': 429.57}, 'mouth_lip_lower_inner_4': {'x': 406.28, 'y': 428.96}, 'mouth_lip_lower_inner_2': {'x': 387.32, 'y': 426.21}, 'mouth_lip_lower_inner_1': {'x': 378.91, 'y': 424.47}}, 'race': {'type': 'yellow', 'probability': 1}, 'quality': {'occlusion': {'left_eye': 0, 'right_eye': 0, 'nose': 0, 'mouth': 0, 'left_cheek': 0.02, 'right_cheek': 0.03, 'chin_contour': 0}, 'blur': 0, 'illumination': 171, 'completeness': 1}, 'eye_status': {'left_eye': 1, 'right_eye': 1}, 'emotion': {'type': 'neutral', 'probability': 0.96}, 'face_type': {'type': 'human', 'probability': 1}, 'mask': {'type': 0, 'probability': 1}, 'spoofing': 0.000747090075}]}}\n"
     ]
    }
   ],
   "source": [
    "# encoding:utf-8\n",
    "\n",
    "import requests\n",
    "\n",
    "'''\n",
    "人脸检测与属性分析\n",
    "'''\n",
    "\n",
    "request_url = \"https://aip.baidubce.com/rest/2.0/face/v3/detect\"\n",
    "image_url = \"http://huangjieqi.gitee.io/picture_storage/kg2000.jpg\"\n",
    "\n",
    "params = \"{\\\"image\\\":\\\"http://huangjieqi.gitee.io/picture_storage/kg2000.jpg\\\",\\\"image_type\\\":\\\"URL\\\",\\\"face_field\\\":\\\"age,beauty,expression,face_shape,gender,glasses,landmark,landmark150,race,quality,eye_status,emotion,face_type,mask,spoofing,faceshape,facetype\\\"}\"\n",
    "access_token = '24.658c797c73303c7b89add9de23c44349.2592000.1605432224.282335-22829599'\n",
    "request_url = request_url + \"?access_token=\" + access_token\n",
    "headers = {'content-type': 'application/json'}\n",
    "response = requests.post(request_url, data=params, headers=headers)\n",
    "if response:\n",
    "    print (response.json())"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'error_code': 0,\n",
       " 'error_msg': 'SUCCESS',\n",
       " 'log_id': 4545558489991,\n",
       " 'timestamp': 1602865856,\n",
       " 'cached': 0,\n",
       " 'result': {'face_num': 1,\n",
       "  'face_list': [{'face_token': '82ed43da199f744f6d757603f9bd999e',\n",
       "    'location': {'left': 275.15,\n",
       "     'top': 226.04,\n",
       "     'width': 294,\n",
       "     'height': 294,\n",
       "     'rotation': -1},\n",
       "    'face_probability': 1,\n",
       "    'angle': {'yaw': -1.02, 'pitch': 14.68, 'roll': -4.08},\n",
       "    'age': 21,\n",
       "    'beauty': 55.28,\n",
       "    'expression': {'type': 'none', 'probability': 0.92},\n",
       "    'face_shape': {'type': 'oval', 'probability': 0.61},\n",
       "    'gender': {'type': 'female', 'probability': 0.91},\n",
       "    'glasses': {'type': 'common', 'probability': 1},\n",
       "    'landmark': [{'x': 354.95, 'y': 275.97},\n",
       "     {'x': 486.24, 'y': 271.87},\n",
       "     {'x': 423, 'y': 356.75},\n",
       "     {'x': 426.47, 'y': 425.44}],\n",
       "    'landmark72': [{'x': 276.45, 'y': 273.77},\n",
       "     {'x': 282.35, 'y': 320.74},\n",
       "     {'x': 291.55, 'y': 368.26},\n",
       "     {'x': 304.07, 'y': 415.25},\n",
       "     {'x': 333.31, 'y': 463.12},\n",
       "     {'x': 379.97, 'y': 502.7},\n",
       "     {'x': 428.25, 'y': 515.26},\n",
       "     {'x': 476.31, 'y': 500.55},\n",
       "     {'x': 522.19, 'y': 458.62},\n",
       "     {'x': 550.43, 'y': 408.78},\n",
       "     {'x': 561.16, 'y': 359.45},\n",
       "     {'x': 567.84, 'y': 310.52},\n",
       "     {'x': 570.75, 'y': 261.97},\n",
       "     {'x': 324.24, 'y': 280.29},\n",
       "     {'x': 337.84, 'y': 268.99},\n",
       "     {'x': 353.83, 'y': 265.86},\n",
       "     {'x': 369.46, 'y': 270.16},\n",
       "     {'x': 382.85, 'y': 284.43},\n",
       "     {'x': 368.69, 'y': 287.39},\n",
       "     {'x': 352.44, 'y': 288.91},\n",
       "     {'x': 336.35, 'y': 286.16},\n",
       "     {'x': 354.95, 'y': 275.97},\n",
       "     {'x': 299.26, 'y': 249.65},\n",
       "     {'x': 317.62, 'y': 227.4},\n",
       "     {'x': 342.01, 'y': 223.77},\n",
       "     {'x': 365.49, 'y': 226.47},\n",
       "     {'x': 387.5, 'y': 242.21},\n",
       "     {'x': 364.36, 'y': 242.18},\n",
       "     {'x': 341.89, 'y': 241.2},\n",
       "     {'x': 319.71, 'y': 243.36},\n",
       "     {'x': 458.87, 'y': 282.29},\n",
       "     {'x': 471.12, 'y': 267.12},\n",
       "     {'x': 486.27, 'y': 261.88},\n",
       "     {'x': 502.73, 'y': 264.02},\n",
       "     {'x': 517.01, 'y': 273.98},\n",
       "     {'x': 505.19, 'y': 281.01},\n",
       "     {'x': 489.12, 'y': 284.44},\n",
       "     {'x': 473.07, 'y': 284.21},\n",
       "     {'x': 486.24, 'y': 271.87},\n",
       "     {'x': 451.15, 'y': 240.49},\n",
       "     {'x': 472.55, 'y': 223.47},\n",
       "     {'x': 495.78, 'y': 219},\n",
       "     {'x': 520.72, 'y': 221.05},\n",
       "     {'x': 541.07, 'y': 241.33},\n",
       "     {'x': 519.66, 'y': 236.66},\n",
       "     {'x': 497.07, 'y': 236.36},\n",
       "     {'x': 474.6, 'y': 238.8},\n",
       "     {'x': 401.01, 'y': 285.62},\n",
       "     {'x': 396.5, 'y': 313.62},\n",
       "     {'x': 391.5, 'y': 342.45},\n",
       "     {'x': 382.99, 'y': 372.29},\n",
       "     {'x': 403.01, 'y': 373.64},\n",
       "     {'x': 445.47, 'y': 371.55},\n",
       "     {'x': 464.79, 'y': 368.3},\n",
       "     {'x': 453.33, 'y': 339.35},\n",
       "     {'x': 446.35, 'y': 311.81},\n",
       "     {'x': 439.45, 'y': 284.1},\n",
       "     {'x': 423, 'y': 356.75},\n",
       "     {'x': 371.64, 'y': 421.4},\n",
       "     {'x': 397.83, 'y': 412.52},\n",
       "     {'x': 425.98, 'y': 412.96},\n",
       "     {'x': 454.46, 'y': 410.96},\n",
       "     {'x': 482.02, 'y': 417.58},\n",
       "     {'x': 458.55, 'y': 439.23},\n",
       "     {'x': 426.77, 'y': 448.42},\n",
       "     {'x': 394.74, 'y': 441.26},\n",
       "     {'x': 398.84, 'y': 422.78},\n",
       "     {'x': 426.59, 'y': 424.53},\n",
       "     {'x': 453.98, 'y': 421.24},\n",
       "     {'x': 454.23, 'y': 425.94},\n",
       "     {'x': 426.15, 'y': 429.43},\n",
       "     {'x': 398.78, 'y': 427.96}],\n",
       "    'landmark150': {'cheek_right_1': {'x': 280.23, 'y': 268.73},\n",
       "     'cheek_right_3': {'x': 283.68, 'y': 316.54},\n",
       "     'cheek_right_5': {'x': 290.95, 'y': 364.34},\n",
       "     'cheek_right_7': {'x': 302.22, 'y': 411.86},\n",
       "     'cheek_right_9': {'x': 331.99, 'y': 459.22},\n",
       "     'cheek_right_11': {'x': 379.41, 'y': 501.94},\n",
       "     'chin_2': {'x': 428.11, 'y': 515.42},\n",
       "     'cheek_left_11': {'x': 476.52, 'y': 500.25},\n",
       "     'cheek_left_9': {'x': 523.07, 'y': 457.37},\n",
       "     'cheek_left_7': {'x': 553.06, 'y': 408.4},\n",
       "     'cheek_left_5': {'x': 562.88, 'y': 359.27},\n",
       "     'cheek_left_3': {'x': 568.4, 'y': 310.5},\n",
       "     'cheek_left_1': {'x': 571.26, 'y': 262.13},\n",
       "     'eye_right_corner_right': {'x': 324.38, 'y': 278.31},\n",
       "     'eye_right_eyelid_upper_2': {'x': 337.05, 'y': 268.25},\n",
       "     'eye_right_eyelid_upper_4': {'x': 352.16, 'y': 265.76},\n",
       "     'eye_right_eyelid_upper_6': {'x': 367.23, 'y': 269.78},\n",
       "     'eye_right_corner_left': {'x': 379.91, 'y': 282.51},\n",
       "     'eye_right_eyelid_lower_6': {'x': 366.1, 'y': 283.96},\n",
       "     'eye_right_eyelid_lower_4': {'x': 351.32, 'y': 284.87},\n",
       "     'eye_right_eyelid_lower_2': {'x': 336.41, 'y': 282.81},\n",
       "     'eye_right_eyeball_center': {'x': 353.33, 'y': 274.06},\n",
       "     'eyebrow_right_corner_right': {'x': 299.44, 'y': 248.62},\n",
       "     'eyebrow_right_upper_2': {'x': 316.93, 'y': 225.85},\n",
       "     'eyebrow_right_upper_3': {'x': 342.08, 'y': 221.61},\n",
       "     'eyebrow_right_upper_4': {'x': 366.11, 'y': 225.69},\n",
       "     'eyebrow_right_corner_left': {'x': 388.17, 'y': 242.18},\n",
       "     'eyebrow_right_lower_3': {'x': 364.67, 'y': 241.4},\n",
       "     'eyebrow_right_lower_2': {'x': 341.79, 'y': 239.93},\n",
       "     'eyebrow_right_lower_1': {'x': 319.23, 'y': 242.52},\n",
       "     'eye_left_corner_right': {'x': 460.54, 'y': 281.18},\n",
       "     'eye_left_eyelid_upper_2': {'x': 472.37, 'y': 267.51},\n",
       "     'eye_left_eyelid_upper_4': {'x': 487.32, 'y': 262.5},\n",
       "     'eye_left_eyelid_upper_6': {'x': 503.27, 'y': 264.73},\n",
       "     'eye_left_corner_left': {'x': 517.74, 'y': 274.4},\n",
       "     'eye_left_eyelid_lower_6': {'x': 505, 'y': 279.37},\n",
       "     'eye_left_eyelid_lower_4': {'x': 489.55, 'y': 282.38},\n",
       "     'eye_left_eyelid_lower_2': {'x': 474.19, 'y': 282.26},\n",
       "     'eye_left_eyeball_center': {'x': 486.93, 'y': 271.58},\n",
       "     'eyebrow_left_corner_right': {'x': 450.06, 'y': 240.22},\n",
       "     'eyebrow_left_upper_2': {'x': 472.07, 'y': 222.41},\n",
       "     'eyebrow_left_upper_3': {'x': 496.42, 'y': 216.86},\n",
       "     'eyebrow_left_upper_4': {'x': 522.78, 'y': 219.5},\n",
       "     'eyebrow_left_corner_left': {'x': 543.17, 'y': 241.95},\n",
       "     'eyebrow_left_lower_3': {'x': 521.36, 'y': 236.56},\n",
       "     'eyebrow_left_lower_2': {'x': 497.68, 'y': 235.35},\n",
       "     'eyebrow_left_lower_1': {'x': 474.14, 'y': 238.22},\n",
       "     'nose_right_contour_1': {'x': 401.43, 'y': 283.45},\n",
       "     'nose_right_contour_2': {'x': 395.57, 'y': 312.44},\n",
       "     'nose_right_contour_3': {'x': 389.79, 'y': 341.44},\n",
       "     'nose_right_contour_4': {'x': 380.03, 'y': 370.68},\n",
       "     'nose_right_contour_6': {'x': 399.66, 'y': 373.77},\n",
       "     'nose_left_contour_6': {'x': 443.29, 'y': 372.64},\n",
       "     'nose_left_contour_4': {'x': 464.24, 'y': 368.98},\n",
       "     'nose_left_contour_3': {'x': 452.23, 'y': 340.21},\n",
       "     'nose_left_contour_2': {'x': 445.18, 'y': 311.44},\n",
       "     'nose_left_contour_1': {'x': 438.42, 'y': 282.92},\n",
       "     'nose_tip': {'x': 419.96, 'y': 357.91},\n",
       "     'mouth_corner_right_outer': {'x': 369.64, 'y': 421.23},\n",
       "     'mouth_lip_upper_outer_3': {'x': 394.83, 'y': 413.06},\n",
       "     'mouth_lip_upper_outer_6': {'x': 423.48, 'y': 412.99},\n",
       "     'mouth_lip_upper_outer_9': {'x': 453.57, 'y': 411.88},\n",
       "     'mouth_corner_left_outer': {'x': 483.18, 'y': 416.67},\n",
       "     'mouth_lip_lower_outer_9': {'x': 458.93, 'y': 440.97},\n",
       "     'mouth_lip_lower_outer_6': {'x': 425.4, 'y': 451.36},\n",
       "     'mouth_lip_lower_outer_3': {'x': 392.57, 'y': 443.25},\n",
       "     'mouth_lip_upper_inner_3': {'x': 395.74, 'y': 423.95},\n",
       "     'mouth_lip_upper_inner_6': {'x': 424.1, 'y': 425.68},\n",
       "     'mouth_lip_upper_inner_9': {'x': 453.55, 'y': 422.36},\n",
       "     'mouth_lip_lower_inner_9': {'x': 453.5, 'y': 425.82},\n",
       "     'mouth_lip_lower_inner_6': {'x': 424.63, 'y': 429.85},\n",
       "     'mouth_lip_lower_inner_3': {'x': 396.74, 'y': 427.98},\n",
       "     'cheek_right_2': {'x': 281.59, 'y': 292.66},\n",
       "     'cheek_right_4': {'x': 286.65, 'y': 340.52},\n",
       "     'cheek_right_6': {'x': 295.25, 'y': 388.77},\n",
       "     'cheek_right_8': {'x': 314.97, 'y': 437.01},\n",
       "     'cheek_right_10': {'x': 354.57, 'y': 481.91},\n",
       "     'chin_1': {'x': 402.18, 'y': 512.67},\n",
       "     'chin_3': {'x': 453.81, 'y': 511.44},\n",
       "     'cheek_left_10': {'x': 500.71, 'y': 480.11},\n",
       "     'cheek_left_8': {'x': 540, 'y': 434.4},\n",
       "     'cheek_left_6': {'x': 559.23, 'y': 384.46},\n",
       "     'cheek_left_4': {'x': 565.69, 'y': 335.12},\n",
       "     'cheek_left_2': {'x': 569.84, 'y': 286.54},\n",
       "     'eyebrow_right_upper_1': {'x': 299.29, 'y': 242.62},\n",
       "     'eyebrow_right_upper_5': {'x': 388.26, 'y': 233.15},\n",
       "     'eyebrow_left_upper_1': {'x': 449.63, 'y': 231.52},\n",
       "     'eyebrow_left_upper_5': {'x': 543.01, 'y': 235.87},\n",
       "     'eye_right_eyelid_upper_1': {'x': 329.68, 'y': 272.1},\n",
       "     'eye_right_eyelid_upper_3': {'x': 344.22, 'y': 265.71},\n",
       "     'eye_right_eyelid_upper_5': {'x': 360.35, 'y': 266.32},\n",
       "     'eye_right_eyelid_upper_7': {'x': 374.74, 'y': 274.98},\n",
       "     'eye_right_eyelid_lower_7': {'x': 373.11, 'y': 283.4},\n",
       "     'eye_right_eyelid_lower_5': {'x': 358.94, 'y': 285.54},\n",
       "     'eye_right_eyelid_lower_3': {'x': 343.64, 'y': 285.22},\n",
       "     'eye_right_eyelid_lower_1': {'x': 330.27, 'y': 281.1},\n",
       "     'eye_right_eyeball_right': {'x': 340.94, 'y': 275.26},\n",
       "     'eye_right_eyeball_left': {'x': 365.17, 'y': 275.15},\n",
       "     'eye_left_eyelid_upper_1': {'x': 465.21, 'y': 273.24},\n",
       "     'eye_left_eyelid_upper_3': {'x': 479.16, 'y': 263.63},\n",
       "     'eye_left_eyelid_upper_5': {'x': 495.69, 'y': 262.32},\n",
       "     'eye_left_eyelid_upper_7': {'x': 511.53, 'y': 268.48},\n",
       "     'eye_left_eyelid_lower_7': {'x': 511.6, 'y': 277.33},\n",
       "     'eye_left_eyelid_lower_5': {'x': 497.73, 'y': 282.27},\n",
       "     'eye_left_eyelid_lower_3': {'x': 481.9, 'y': 283.54},\n",
       "     'eye_left_eyelid_lower_1': {'x': 467.42, 'y': 281.95},\n",
       "     'eye_left_eyeball_right': {'x': 475.07, 'y': 273.34},\n",
       "     'eye_left_eyeball_left': {'x': 499.53, 'y': 272.18},\n",
       "     'nose_bridge_1': {'x': 419.43, 'y': 283.47},\n",
       "     'nose_bridge_2': {'x': 419.59, 'y': 311.89},\n",
       "     'nose_bridge_3': {'x': 419.8, 'y': 340.86},\n",
       "     'nose_right_contour_5': {'x': 391.62, 'y': 381.26},\n",
       "     'nose_right_contour_7': {'x': 397.79, 'y': 366.03},\n",
       "     'nose_left_contour_7': {'x': 444.46, 'y': 364.83},\n",
       "     'nose_left_contour_5': {'x': 452.51, 'y': 380.17},\n",
       "     'nose_middle_contour': {'x': 421.66, 'y': 384.61},\n",
       "     'mouth_corner_right_inner': {'x': 373.87, 'y': 421.9},\n",
       "     'mouth_corner_left_inner': {'x': 478.85, 'y': 417.73},\n",
       "     'mouth_lip_upper_outer_1': {'x': 377.48, 'y': 417.49},\n",
       "     'mouth_lip_upper_outer_2': {'x': 385.63, 'y': 414.65},\n",
       "     'mouth_lip_upper_outer_4': {'x': 404.39, 'y': 410.51},\n",
       "     'mouth_lip_upper_outer_5': {'x': 413.74, 'y': 410.89},\n",
       "     'mouth_lip_upper_outer_7': {'x': 433.93, 'y': 410.56},\n",
       "     'mouth_lip_upper_outer_8': {'x': 443.6, 'y': 409.79},\n",
       "     'mouth_lip_upper_outer_10': {'x': 463.99, 'y': 412.53},\n",
       "     'mouth_lip_upper_outer_11': {'x': 473.56, 'y': 414.3},\n",
       "     'mouth_lip_lower_outer_11': {'x': 476.04, 'y': 425.81},\n",
       "     'mouth_lip_lower_outer_10': {'x': 468.57, 'y': 434.45},\n",
       "     'mouth_lip_lower_outer_8': {'x': 449.4, 'y': 447.85},\n",
       "     'mouth_lip_lower_outer_7': {'x': 438, 'y': 451.39},\n",
       "     'mouth_lip_lower_outer_5': {'x': 413.56, 'y': 452.36},\n",
       "     'mouth_lip_lower_outer_4': {'x': 402.3, 'y': 449.47},\n",
       "     'mouth_lip_lower_outer_2': {'x': 383.73, 'y': 437.4},\n",
       "     'mouth_lip_lower_outer_1': {'x': 376.67, 'y': 429.58},\n",
       "     'mouth_lip_upper_inner_1': {'x': 378.74, 'y': 421.72},\n",
       "     'mouth_lip_upper_inner_2': {'x': 386.86, 'y': 422.5},\n",
       "     'mouth_lip_upper_inner_4': {'x': 405.49, 'y': 423.66},\n",
       "     'mouth_lip_upper_inner_5': {'x': 414.43, 'y': 424.14},\n",
       "     'mouth_lip_upper_inner_7': {'x': 434.17, 'y': 423.78},\n",
       "     'mouth_lip_upper_inner_8': {'x': 443.51, 'y': 422.67},\n",
       "     'mouth_lip_upper_inner_10': {'x': 463.61, 'y': 419.99},\n",
       "     'mouth_lip_upper_inner_11': {'x': 472.87, 'y': 418.17},\n",
       "     'mouth_lip_lower_inner_11': {'x': 473.35, 'y': 420.88},\n",
       "     'mouth_lip_lower_inner_10': {'x': 464, 'y': 423.31},\n",
       "     'mouth_lip_lower_inner_8': {'x': 443.95, 'y': 427.45},\n",
       "     'mouth_lip_lower_inner_7': {'x': 434.74, 'y': 428.73},\n",
       "     'mouth_lip_lower_inner_5': {'x': 415.26, 'y': 429.57},\n",
       "     'mouth_lip_lower_inner_4': {'x': 406.28, 'y': 428.96},\n",
       "     'mouth_lip_lower_inner_2': {'x': 387.32, 'y': 426.21},\n",
       "     'mouth_lip_lower_inner_1': {'x': 378.91, 'y': 424.47}},\n",
       "    'race': {'type': 'yellow', 'probability': 1},\n",
       "    'quality': {'occlusion': {'left_eye': 0,\n",
       "      'right_eye': 0,\n",
       "      'nose': 0,\n",
       "      'mouth': 0,\n",
       "      'left_cheek': 0.02,\n",
       "      'right_cheek': 0.03,\n",
       "      'chin_contour': 0},\n",
       "     'blur': 0,\n",
       "     'illumination': 171,\n",
       "     'completeness': 1},\n",
       "    'eye_status': {'left_eye': 1, 'right_eye': 1},\n",
       "    'emotion': {'type': 'neutral', 'probability': 0.96},\n",
       "    'face_type': {'type': 'human', 'probability': 1},\n",
       "    'mask': {'type': 0, 'probability': 1},\n",
       "    'spoofing': 0.000747090075}]}}"
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "response.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'refresh_token': '25.d9024437daa3b1994e5ec16985399aa2.315360000.1918261650.282335-22829599', 'expires_in': 2592000, 'session_key': '9mzdXRdQOpfAh00H4uXuwjk1ebjC7pygf1nyJWnZRs47DMme/7EO4HrFXdn5gy5QZSlTvAgWA8m1mVXs5j47vyRj5iShMg==', 'access_token': '24.fc22b672ad18844c9cff9ef2e4a2709d.2592000.1605493650.282335-22829599', 'scope': 'public brain_all_scope vis-faceverify_faceverify_h5-face-liveness vis-faceverify_FACE_V3 vis-faceverify_idl_face_merge vis-faceverify_FACE_EFFECT wise_adapt lebo_resource_base lightservice_public hetu_basic lightcms_map_poi kaidian_kaidian ApsMisTest_Test权限 vis-classify_flower lpq_开放 cop_helloScope ApsMis_fangdi_permission smartapp_snsapi_base smartapp_mapp_dev_manage iop_autocar oauth_tp_app smartapp_smart_game_openapi oauth_sessionkey smartapp_swanid_verify smartapp_opensource_openapi smartapp_opensource_recapi fake_face_detect_开放Scope vis-ocr_虚拟人物助理 idl-video_虚拟人物助理 smartapp_component', 'session_secret': 'd1eecbdf515db48117db07c54005466f'}\n"
     ]
    }
   ],
   "source": [
    " # encoding:utf-8\n",
    "import requests \n",
    "\n",
    "# client_id 为官网获取的AK， client_secret 为官网获取的SK\n",
    "host = 'https://aip.baidubce.com/oauth/2.0/token?grant_type=client_credentials&client_id=Z6Rrww77f6pbWVHGreoOENUq&client_secret=ejOcq0HaHqFEfLZ6MVeSkFnwQFoycHNe'\n",
    "response = requests.get(host)\n",
    "if response:\n",
    "    print(response.json())"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'refresh_token': '25.d9024437daa3b1994e5ec16985399aa2.315360000.1918261650.282335-22829599',\n",
       " 'expires_in': 2592000,\n",
       " 'session_key': '9mzdXRdQOpfAh00H4uXuwjk1ebjC7pygf1nyJWnZRs47DMme/7EO4HrFXdn5gy5QZSlTvAgWA8m1mVXs5j47vyRj5iShMg==',\n",
       " 'access_token': '24.fc22b672ad18844c9cff9ef2e4a2709d.2592000.1605493650.282335-22829599',\n",
       " 'scope': 'public brain_all_scope vis-faceverify_faceverify_h5-face-liveness vis-faceverify_FACE_V3 vis-faceverify_idl_face_merge vis-faceverify_FACE_EFFECT wise_adapt lebo_resource_base lightservice_public hetu_basic lightcms_map_poi kaidian_kaidian ApsMisTest_Test权限 vis-classify_flower lpq_开放 cop_helloScope ApsMis_fangdi_permission smartapp_snsapi_base smartapp_mapp_dev_manage iop_autocar oauth_tp_app smartapp_smart_game_openapi oauth_sessionkey smartapp_swanid_verify smartapp_opensource_openapi smartapp_opensource_recapi fake_face_detect_开放Scope vis-ocr_虚拟人物助理 idl-video_虚拟人物助理 smartapp_component',\n",
       " 'session_secret': 'd1eecbdf515db48117db07c54005466f'}"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "response.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'error_code': 0, 'error_msg': 'SUCCESS', 'log_id': 7925792510115, 'timestamp': 1602903686, 'cached': 0, 'result': {'score': 13.00167084, 'face_list': [{'face_token': '37a3bf1adb8ecf3d939fb0e3ee505406'}, {'face_token': 'fdcc8b9d555da25b82ae73c93fdde789'}]}}\n"
     ]
    }
   ],
   "source": [
    "# encoding:utf-8\n",
    "\n",
    "import requests\n",
    "\n",
    "'''\n",
    "人脸对比\n",
    "'''\n",
    "\n",
    "request_url = \"https://aip.baidubce.com/rest/2.0/face/v3/match\"\n",
    "\n",
    "params = \"[{\\\"image\\\": \\\"https://vicky-newmedia.gitee.io/api_photo/image/linxixi.jpg\\\", \\\"image_type\\\": \\\"URL\\\", \\\"face_type\\\": \\\"LIVE\\\", \\\"quality_control\\\": \\\"LOW\\\"},{\\\"image\\\": \\\"https://vicky-newmedia.gitee.io/api_photo/image/liaobowen.jpg\\\", \\\"image_type\\\": \\\"URL\\\", \\\"face_type\\\": \\\"LIVE\\\", \\\"quality_control\\\": \\\"LOW\\\"}]\"\n",
    "access_token = '24.780f399d48b772729add8422ee02a19a.2592000.1605457967.282335-22829599'\n",
    "request_url = request_url + \"?access_token=\" + access_token\n",
    "headers = {'content-type': 'application/json'}\n",
    "response = requests.post(request_url, data=params, headers=headers)\n",
    "if response:\n",
    "    print (response.json())"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'error_code': 0,\n",
       " 'error_msg': 'SUCCESS',\n",
       " 'log_id': 7925792510115,\n",
       " 'timestamp': 1602903686,\n",
       " 'cached': 0,\n",
       " 'result': {'score': 13.00167084,\n",
       "  'face_list': [{'face_token': '37a3bf1adb8ecf3d939fb0e3ee505406'},\n",
       "   {'face_token': 'fdcc8b9d555da25b82ae73c93fdde789'}]}}"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "response.json()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.3"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": false
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
